home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Science / Gnuplot 3.5 / docs / makefile-0 < prev    next >
Makefile  |  1993-11-03  |  4KB  |  172 lines

  1. #
  2. # $Id: makefile%v 3.38.2.84 1993/03/01 01:36:45 woo Exp woo $
  3. #
  4. #
  5. # Makefile for GNUPLOT documentation
  6. #
  7. # Note that the top-level file for documentation is gnuplot.doc.
  8. # See README.
  9. #
  10. # To print manual:
  11. #    make gnuplot.dvi             (for latex)
  12. #    (print or view gnuplot.dvi)
  13. # OR
  14. #    make gnuplot.nroff           (for nroff)
  15. #    (print or view gnuplot.nroff)
  16. #   or
  17. #    make "TROFF=itroff" troff    (for troff; use your troff here)
  18. #
  19. # $Id: makefile%v 3.38.2.84 1993/03/01 01:36:45 woo Exp woo $
  20.  
  21. # usually overridden by ../Makefile
  22. HELPDEST = /usr/local/lib
  23.  
  24. # substitute your troff command (and any flags) for this one
  25. TROFF=troff
  26.  
  27. # substitute cp if you do not have the install program
  28. INSTALL=install
  29.  
  30. # substitute your DVI to PostScript conversion program here
  31. DVIPS=dvips
  32.  
  33. # Compiler flags
  34. # -DSYSV if att sys V
  35. # -DMSDOS if MSDOS PS
  36. # -traditional -g -O if gcc (set 'CC = gcc')
  37. # no extra flags for BSD
  38. CFLAGS = -s
  39. CC = cc
  40.  
  41. # Default information
  42. help:
  43.     @echo "Please do a 'make <TARGET>' where <TARGET> is one of" \
  44.                 "the following:"
  45.     @echo
  46.     @echo "check        check the gnuplot.doc file"
  47.     @echo "clean        remove all derived files"
  48.     @echo "dvi          DVI files (gnuplot.dvi gpcard.dvi)"
  49.     @echo "gih          Unix and MSDOS help file (gnuplot.gih)"
  50.     @echo "help         make help"
  51.     @echo "hlp          VMS help file (gnuplot.hlp)"
  52.     @echo "info         Info documentation (gnuplot.info)"
  53.     @echo "install-unix Unix and MSDOS install"
  54.     @echo "install-vms  VMS install"
  55.     @echo "nroff        nroff documentation (gnuplot.nroff)"
  56.     @echo "ps           PostScript files (gnuplot.ps gpcard.ps)"
  57.     @echo "tex          LaTeX documentation (gnuplot.tex)"
  58.     @echo "troff        troff documentation"
  59.     @echo "tutorial     LaTeX tutorial (latextut/tutorial.dvi)"
  60.     @echo
  61.     @echo "If you are not familiar with makefiles or just want" \
  62.                 "to know what"
  63.     @echo "'make <TARGET>' would do without actually doing" \
  64.                 "anything, then type"
  65.     @echo "        'make -n <TARGET>'"
  66.     @echo
  67.  
  68. # default is what is needed for interactive gnuplot
  69. default: gnuplot.hlp gnuplot.gih
  70.  
  71. ### [tn]roff documentation
  72. troff: gnuplot.ms titlepag.ms
  73.     tbl gnuplot.ms | eqn | $(TROFF) -ms
  74.  
  75. nroff: gnuplot.nroff
  76.  
  77. gnuplot.nroff: gnuplot.ms titlepag.ms
  78.     tbl gnuplot.ms | neqn | nroff -ms | col > gnuplot.nroff
  79.  
  80. ms: gnuplot.ms
  81.  
  82. gnuplot.ms: doc2ms gnuplot.doc
  83.     ./doc2ms gnuplot.doc gnuplot.ms
  84.  
  85. doc2ms: doc2ms.c
  86.     $(CC) $(CFLAGS) -o doc2ms doc2ms.c
  87.  
  88. ### LaTeX documentation
  89. tex: gnuplot.tex
  90.  
  91. gnuplot.tex: doc2tex gnuplot.doc
  92.     ./doc2tex gnuplot.doc gnuplot.tex
  93.  
  94. # this is how to make DVI files
  95. dvi: gnuplot.dvi gpcard.dvi
  96.  
  97. gnuplot.dvi: gnuplot.tex titlepag.tex toc_entr.sty
  98.     latex gnuplot
  99.     latex gnuplot
  100.  
  101. gpcard.dvi: gpcard.tex
  102.     tex gpcard
  103.  
  104. # this is how to make PostScript files
  105. # if pslatex has been installed, add "times" to titlepage.tex
  106. ps: gnuplot.ps gpcard.ps
  107.  
  108. gnuplot.ps: gnuplot.dvi
  109.     $(DVIPS) gnuplot
  110.  
  111. gpcard.ps: gpcard.dvi
  112.     $(DVIPS) gpcard
  113.  
  114. doc2tex: doc2tex.c
  115.     $(CC) $(CFLAGS) -o doc2tex doc2tex.c
  116.  
  117. # this is how to make gnuplot.hlp
  118. hlp: gnuplot.hlp
  119.  
  120. gnuplot.hlp: doc2hlp gnuplot.doc
  121.     ./doc2hlp gnuplot.doc gnuplot.hlp
  122.  
  123. doc2hlp: doc2hlp.c
  124.     $(CC) $(CFLAGS) -o doc2hlp doc2hlp.c
  125.  
  126. # this is how to make gnuplot.gih
  127. gih: gnuplot.gih
  128.  
  129. gnuplot.gih: doc2gih gnuplot.doc
  130.     ./doc2gih gnuplot.doc gnuplot.gih
  131.  
  132. doc2gih: doc2gih.c
  133.     $(CC) $(CFLAGS) -o doc2gih doc2gih.c
  134.  
  135. # this is how to make Info documentation
  136. info: gnuplot.info
  137.  
  138. gnuplot.info: gnuplot.doc
  139.     perl doc2info.pl gnuplot.doc > gpltinfo.tex
  140.     makeinfo +fill-column 80 gpltinfo.tex
  141.     rm -f gpltinfo.tex
  142.  
  143. tutorial: latextut/tutorial.tex
  144.     ( cd latextut; $(MAKE) )
  145.  
  146. # this is how to check the gnuplot.doc file
  147. check: checkdoc gnuplot.doc
  148.     ./checkdoc < gnuplot.doc
  149.  
  150. checkdoc: checkdoc.c
  151.     $(CC) $(CFLAGS) -o checkdoc checkdoc.c
  152.  
  153. # For Unix and MSDOS only
  154. install-unix: gnuplot.gih
  155.     $(INSTALL) gnuplot.gih $(HELPDEST)
  156.  
  157. # for VMS only
  158. install-vms: gnuplot.hlp
  159.     $(INSTALL) gnuplot.hlp $(HELPDEST)
  160.  
  161. # remove all derived files
  162. clean:
  163.     rm -f doc2ms gnuplot.nroff gnuplot.ms \
  164.               doc2tex gnuplot.tex gnuplot.dvi \
  165.               gnuplot.aux gnuplot.log gnuplot.toc \
  166.               gnuplot.ps gpcard.dvi gpcard.log gpcard.ps \
  167.               doc2hlp gnuplot.hlp \
  168.               doc2gih gnuplot.gih \
  169.               checkdoc *~ *.o core a.out \
  170.               gnuplot.info* gpltinfo.tex
  171.     ( cd latextut; $(MAKE) clean )
  172.